home *** CD-ROM | disk | FTP | other *** search
- Path: midland.co.nz!usenet
- From: jsev@midland.co.nz (John Severinsen)
- Newsgroups: comp.sys.amiga.misc
- Subject: Re: Amigados - checking for a file
- Date: 8 Apr 1996 10:43:18 GMT
- Organization: Midland Internet Limited, Network Services
- Message-ID: <840.6672T1024T281@midland.co.nz>
- References: <401.6670T240T431@nibelung.demon.co.uk>
- NNTP-Posting-Host: jsev.midland.co.nz
- X-Newsreader: THOR 2.22 (Amiga;TCP/IP) *UNREGISTERED*
-
- On 06-Apr-96 15:03:48 (Msg ID: <401.6670T240T431@nibelung.demon.co.uk>), Barry
- Shilliday wrote:
- --
-
- >What would be the format to check the existence of a file in a script for
- >dos? I would have thought something like this:
-
- >If EXISTS blah:filename
- > dowhatever
- > else
- > dothatinstead
- > endif
- >endif
-
- >but this doesn't work.
-
- Apart from an extra endif, it looks fine. The following works here:
-
- if exists blah:filename
- echo "Found it"
- else
- echo "Missing"
- endif
-
-
-
-
-
- --
- /// * |One Ring to rule them all, One Ring to find them
- __/// ** |One Ring to bring them all and in the darkness bind them
- \XX/ * *miga |In the land of Mordor where Shadows lie
- |
- John Severinsen |- J.R.R. Tolkien
- jsev@midland.co.nz |
- <tsb>Thor 2.22, 08-Apr-96 17:02:11
-
- Denial - A large river in Egypt.
-
-